package com.frank.subject.infra.basic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2024/3/5
 * @description  题目信息表
 */


@Data
@TableName(value = "subject_info")
public class SubjectInfo implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 题目名称
     */
    @TableField(value = "subject_name")
    private String subjectName;

    /**
     * 题目难度
     */
    @TableField(value = "subject_difficult")
    private Integer subjectDifficult;

    /**
     * 出题人名
     */
    @TableField(value = "settle_name")
    private String settleName;

    /**
     * 题目类型 1单选 2多选 3判断 4简答
     */
    @TableField(value = "subject_type")
    private Integer subjectType;

    /**
     * 题目分数
     */
    @TableField(value = "subject_score")
    private Integer subjectScore;

    /**
     * 题目解析
     */
    @TableField(value = "subject_parse")
    private String subjectParse;

    /**
     * 创建人
     */
    @TableField(value = "created_by")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private Date createdTime;

    /**
     * 修改人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "is_deleted")
    private Integer isDeleted;

    private static final long serialVersionUID = 1L;
}